#import <UIKit/UIKit.h>

@class FWApplication;
@class FWPreferences;


@interface FWInputView : UIView <UITextFieldDelegate>
{
    BOOL showingKeyboard;
    BOOL visible;
    BOOL lightBackground;
}

@property (retain) FWApplication* application;
@property (retain) UINavigationBar* navBar;
@property (retain) UILabel* textLabel;
@property (retain) UITextField* text;
@property (retain) UIBarButtonItem* done;
@property (assign) BOOL hasFired;
@property (readonly, getter=isLightBackground) BOOL lightBackground;


- (id)initWithFrame:(CGRect)rect caption:(NSString*)caption label:(NSString*)caption prompt:(NSString*)prompt application:(FWApplication*)appl preferences:(FWPreferences*)prefs;
- (void)dealloc;

- (void)showKeyboard:(BOOL)animation;
- (void)hideKeyboard:(BOOL)animation;

@end
